
<!doctype html>
<html class="no-js" lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>$!goods.goods_name - #if($!srcApp == 1 || $!srcApp == 'jyft')建业商城 #else一家商城#end</title>
	#if($!goods.seo_keywords)
		#set($keywords=$!goods.seo_keywords)
	#else
		#if($!srcApp == 1 || $!srcApp == 'jyft')
			#set($keywords="建业|建业商城")
		#else
			#set($keywords="一家|一家商城")
		#end
	#end
	<meta name="keywords" content="$!keywords" />
	#if($!goods.seo_description)
		#set($description=$!goods.seo_description)
	#else
		#set($description=$!goods.goods_name)
	#end
	<meta name="description" content="$!description" />
	<meta name="generator" content="JianyeMall v0.0.1" />
	<meta name="author" content="www.qingyung.cn">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
	<!-- 手机百度搜索打开网页时,不需要为网页进行转码-->
	<meta http-equiv="Cache-Control" content="no-siteapp"/>
	#if($!srcApp == 1 || $!srcApp == 'jyft') 
	<link rel="icon" type="image/png" href="$!webPath/resources/style/app/default/i/jyft/favicon.png">
	#else
	<link rel="icon" type="image/png" href="$!webPath/resources/style/app/default/i/jyo2o/favicon.png">
	#end
	<!-- Add to homescreen for Chrome on Android -->
	<meta name="mobile-web-app-capable" content="yes">
	<link rel="icon" sizes="192x192" href="$!webPath/resources/style/app/default/i/app-icon72x72@2x.png">
	<!-- Add to homescreen for Safari on iOS -->
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-title" content="Amaze UI"/>
	<link rel="apple-touch-icon-precomposed" href="$!webPath/resources/style/app/default/i/app-icon72x72@2x.png">
	<!-- Tile icon for Win8 (144x144 + tile color) -->
	<meta name="msapplication-TileImage" content="$!webPath/resources/style/app/default/i/app-icon72x72@2x.png">
	<meta name="msapplication-TileColor" content="#0e90d2">

	<link rel="stylesheet" href="$!webPath/resources/libs/amazeui/css/amazeui.min.css">
	<link rel="stylesheet" href="$!webPath/resources/style/app/default/css/app.css">
	<link rel="stylesheet" href="$!webPath/resources/assets/css/larger-image.css">
    <style type="text/css">
        span[style="line-height:1.5;"],span[style="line-height:1.5;"]>img{display:block;}
        span[style="line-height:1.5;"]>img{width:100%;}
        .fl{float:left;}.fr{float:right;}
        .clearfix:after{clear:both;display:block;content:" ";visibility:hidden;height:0;font-size:0;}
        .clearfix{zoom:1;}
        html,body,iframe{width:100%;}

        html,body{font-family:PingFangSC-Regular,Helvetica,"Droid Sans",Arial,sans-serif;}
        li{list-style-type:none;}

        /*top-info*/
        .am-padding-sm{padding:13px 12px;border-bottom: 10px solid #f6f6f6;}
        .width-ref{display:block;width:100%;}
        .am-text-gray,.am-text-grey{color:#B8B8B8;}
        .am-text-gray,.am-text-grey{color:#939393 !important;}
        .bg-gray{background-color:#eee;}

        #photo-slider.sellOut:after{content:'已抢光';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;background-color:rgba(0,0,0,.5);border-radius:50%;padding:20px;line-height:3em;}
        .imgnone{width:23.54rem;height:11.60rem;margin:4.2rem auto;}
        
        .base-div .am-slider-default{margin-bottom:0.5rem;}
        .base-div .am-slider-default .am-control-nav{bottom:1rem;}
        #goods-baseinfo h3{margin-bottom:0;font-size:14px;line-height:1.5;font-weight:500;color:#282828;}
        #goods-baseinfo h3 span.tag-supportcoin{display:inline-block;padding:0 4px;margin-right:5px;vertical-align:top;font-size:14px !important;color:#B77857;border:1px solid #B77857;-webkit-border-radius:4px;border-radius:4px;}
        .pricebox{white-space:nowrap;}

        .goods-num-info{margin-top:8px;line-height:1;font-size:14px;color:#939393;}
        .goods-num-info .am-text-xl{font-size:18px;margin-right:5px;}
        .goods-qiang-info{margin-top:10px;font-size:15px;line-height:1;}
        .goods-qiang-info .am-modal-btn,.goods-qiang-info .am-text-default{font-size:15px;}
		.settime{width:100%;height:45px;display:flex;justify-content:space-between;align-items:center;background:-webkit-linear-gradient(left,#FB392A,#F96A00);line-height:45px;padding: 0 15px !important;color:white;font-size:12px !important;}
		.settime p{margin:0;}
		.settime span{color:white !important;font-weight:200;font-size: 12px !important;margin-left:5px;}

		
		
        .newshopall{width:100%;overflow:hidden;margin-top:12px;font-size:14px;line-height:1;color:#939393;white-space:nowrap;
            display:-webkit-box;display:-moz-box;display:-ms-box;display:-webkit-flex;display:flex;
            -moz-align-items:center;-webkit-align-items:center;align-items:center;
            -webkit-justify-content:space-between;justify-content:space-between;}
        .newshopall .shopnewleft{margin-right:4em;}
        .newshopall .shopnewright{display:-webkit-box;display:-moz-box;display:-ms-box;display:-webkit-flex;display:flex;
            -webkit-box-flex:1;-moz-box-flex:1;-ms-flex:1;-webkit-flex:1;flex:1;
            -webkit-justify-content:flex-end;justify-content:flex-end;overflow:hidden;white-space:nowrap;}
        .newshopall .shopnewright:after{content:"发货";}
        .newshopall .shopnewright .it-name{max-width:none;text-align:right;-webkit-box-flex:1;-moz-box-flex:1;-ms-flex:1;-webkit-flex:1;flex:1;
        white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        .newshopall .shopnewright .it-name:before{content:"本品由";}

        .newshopall .shopnewright {-moz-align-items:center;-webkit-align-items:center;align-items:center;}
        .newshopall .shopnewright_lk_r99 .it-name{color:#B4282D;}
        .newshopall .shopnewright_lk_r99 .it-name:before{content:'来自';}
        .newshopall .shopnewright_lk_r99:after{content:'';width:16px;height:16px;margin-left:6px;
        background:url($!webPath/resources/style/app/goodsEvaluation/image/ico-r99.png) center center no-repeat;background-size:100% 100%;}

        .ico_tip_byg{position:relative;}
        .ico_tip_byg:after {
            content:'';display:inline-block;width:13px;height:13px;margin-left:4px;vertical-align:-1.7px;
            background:url('$!webPath/resources/image/ico_tip_byg.png') center center no-repeat;background-size:cover;
        }
        
        /*详情内容*/
        .goods-details>span{max-width:100%;}
        .goods-details>span>img{display:block;width:100%;}
        .goods-details img{display:block;width:100%!important;margin:0;}
        .goods-details{margin-top:10px;font-size:14px;}

        /*轮播移植*/
        .gd-silder{width:100%;background-color:#fff;}
        .gd-slide img{width:100%;}
        .swiper-container {position:relative;z-index:1;overflow:hidden;width:100%;height:100%;margin:0 auto;
            -webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-o-backface-visibility:hidden;backface-visibility:hidden;}
        .swiper-wrapper {height:100% !important;}
        .swiper-wrapper {
            position:relative;width:100%;
            -webkit-transition-property:-webkit-transform,left,top;-webkit-transition-duration:0s;-webkit-transform:translate3d(0px,0,0);-webkit-transition-timing-function:ease;
            -moz-transition-property:-moz-transform,left,top;-moz-transition-duration:0s;-moz-transform:translate3d(0px,0,0);-moz-transition-timing-function:ease;
            -o-transition-property:-o-transform,left,top;-o-transition-duration:0s;-o-transform:translate3d(0px,0,0);-o-transition-timing-function:ease;-o-transform:translate(0px,0px);
            -ms-transition-property:-ms-transform,left,top;-ms-transition-duration:0s;-ms-transform:translate3d(0px,0,0);-ms-transition-timing-function:ease;
            transition-property:transform,left,top;transition-duration:0s;transform:translate3d(0px,0,0);transition-timing-function:ease;
            -webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;
        }
        .swiper-free-mode > .swiper-wrapper {-webkit-transition-timing-function:ease-out;-moz-transition-timing-function:ease-out;-ms-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto;}
        .swiper-slide {float:left;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;text-align:center;}
        .swiper-wp8-horizontal {-ms-touch-action:pan-y;}
        .swiper-wp8-vertical {-ms-touch-action:pan-x;}
        .device .swiper-container, .swiper-slide .swiper-container {margin-top:0 !important;}
        .swiper-container.nomargin {margin-top:0 !important;}

        .pagination {position:absolute;bottom:8px;height:8px;text-align:center;width:100%;line-height:0;bottom:65px;overflow:hidden;}
        .swiper-pagination-switch {display:inline-block;width:8px;height:8px;background:rgba(255,255,255,0.5);margin:0 5px;
            border-top-left-radius:999px;
            border-top-right-radius:999px;
            border-bottom-right-radius:999px;
            border-bottom-left-radius:999px;
            border-radius:999px;
            -webkit-border-radius:50%;
            border-radius:50%;
        }
        .swiper-active-switch{background-color:#fff;}
        
        .swiper-slide{height:100%;}
        .swiper-slide img{width:100%;max-width:none;height:100%;margin:0 auto;}

        .gd-silder{position:relative;}
        .gd-silder .s__gdover{position:absolute;top:50%;left:50%;margin-left:-45px;margin-top:-45px;z-index:10;width:90px;height:90px;
            line-height:90px;text-align:center;background-color:rgba(0,0,0,0.6);-webkit-border-radius:50%;border-radius:50%;}
        .gd-silder .s__gdover{font-size:16px;color:#fff;}
        .swiper-slide{height:auto !important;}

        /*选择规格*/
        .xtprice{position:relative;width:100%;height:44px;font-size:14px;line-height:44px;background:#fff;color:#282828;}
        .xtprice .xtpriceleft{float:left;margin-left:12px;}
        .xtprice .xtpriceright{padding:0 28px 0 3em;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#939393;}
        .rightradius{position:absolute;top:50%;right:12px;width:8px;height:15px;margin-top:-7px;background:url("$!webPath/resources/style/app/goodsEvaluation/image/more1.png") no-repeat right center;background-size:100% 100%;}
        .xtprice{margin-top:10px;}
		.ssd-module-wrap{
			width:100% !important;
		}
    </style>
	<!-- 4-11 -->
	<style type="text/css">
        /*猜你喜欢*/
		.det-rmd{margin-top:10px;padding:12px 0 12px;color:#282828;background-color:#fff;}
		.det-rmd-tt{padding:0 12px 10px;font-size:14px;line-height:1;}
		.list-md2-bx{width:100%;/*height:13.6rem;*/overflow-y:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch;}
		.list-md2{margin:0;padding:0 12px 0 0;width:1292px;}
		.list-md2 .item{float:left;width:148px;margin-left:12px;font-size:14px;line-height:1;}
		.list-md2 .it-img{overflow:hidden;position:relative;width:100%;height:108px;-webkit-border-radius:4px;border-radius:4px;}
		.list-md2 .it-img img{width:100%;height:100%;}
		.list-md2 .it-label{position:absolute;top:0.45rem;left:0.45rem;max-width:40%;padding:0.3rem 0.4rem;font-size:0.9rem;line-height:1;
			color:#fff;background-color:#ff5d00;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
			-webkit-border-radius:5px 0 5px 0;border-radius:5px 0 5px 0;}
		.list-md2 .it-label i{position:absolute;top:0.2rem;right:0.2rem;width:0.2rem;height:0.2rem;background-color:#fff;
			-webkit-border-radius:50%;border-radius:50%;}
		.list-md2 .it-tip{position:absolute;bottom:0;left:0;width:100%;padding:0 1rem;font-size:1.1rem;line-height:2;
			text-align:center;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(150,150,150,0.4);
			-webkit-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;-webkit-box-sizing:border-box;box-sizing:border-box;}
		.list-md2 .it-tt{padding:0 10px 0 3px;margin-top:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
		.list-md2 .it-price{padding:0 10px 0 3px;margin-top:10px;color:#ccc;}
		.list-md2 .it-price .it-p0{color:#ff3c30;}
		.list-md2 .it-price .it-p1{margin-top:2px;font-size:12px;text-decoration:line-through;text-align:right;}
		.list-md2-bx::-webkit-scrollbar-track{height:0;}
		.list-md2-bx::-webkit-scrollbar{height:0;}
		.list-md2-bx::-webkit-scrollbar-thumb{height:0;background-color:transparent;}
		.list-md2-bx::-webkit-scrollbar {display: none;}
	</style>
	<!-- 4-24-jd -->
	<style type="text/css">
        /*促销*/
        .bx-promotesales *{padding:0;margin:0;}
        .bx-promotesales{padding:12px;color:#282828;background-color:#fff;border-top:1px solid #ddd;font-size:14px;line-height:24px;}
        .bx-promotesales .it-label{float:left;margin-right:15px;}
        .bx-promotesales .it-con{overflow: hidden;}
        .bx-promotesales .it-con li{margin-bottom:4px;}
        .bx-promotesales .it-con li:last-child{margin-bottom:0;}
        .bx-promotesales .it-con .it-tt{float:left;padding:2px 4px;margin:3px 9px 0 0;font-size:11px;line-height:1;color:#B4282D;border:2px solid #B4282D;-webkit-border-radius:3px;border-radius:3px;}
        .bx-promotesales .it-con .it-des{overflow:hidden;}
        @media screen and (-webkit-min-device-pixel-ratio:2) {
            .bx-promotesales .it-con .it-tt { border-width:1px; }
            .bx-promotesales { border-top-width:0.5px; }
        }
        @media screen and (-webkit-min-device-pixel-ratio:3) {
            .bx-promotesales .it-con .it-tt { border-width:0.7px; }
            .bx-promotesales { border-top-width:0.333333px; }
        }

        /*配送--地址*/
        .bx-destination{padding:12px 12px 14px;font-size:14px;line-height:25px;color:#282828;background-color:#fff;}
        .bx-destination .it-label{float:left;margin-right:19px;}
        .bx-destination .it-con{overflow:hidden;}

        .bx-destination .it-addr{position:relative;overflow:hidden;padding:0 1em 0 21px;white-space:nowrap;text-overflow:ellipsis;}
        .bx-destination .it-addr:before{content:'';position:absolute;left:0;top:50%;width:17px;height:17px;margin-top:-8px;
            background:url('$!webPath/resources/image/ico-addr.png') center center no-repeat;background-size:100% 100%;}
        .bx-destination .it-addr:after{content:'';position:absolute;right:0;top:50%;width:8px;height:15px;margin-top:-7px;
            background:url('$!webPath/resources/image/more1.png') center center no-repeat;background-size:100% 100%;
        }

        .bx-destination .it-inventory{color:#B4282D;margin-left:21px;margin-top:7px;line-height:1;}

        @media screen and (-webkit-min-device-pixel-ratio:2) {
            .bx-destination { border-top-width:0.5px; }
        }
        @media screen and (-webkit-min-device-pixel-ratio:3) {
            .bx-destination { border-top-width:0.333333px; }
        }

        /*地址--遮罩*/
        .ico-49{display:inline-block;width:11px;height:11px;background:url('$!webPath/resources/image/ico-49.png') center center no-repeat;background-size:100% 100%;}
        .ico-48{display:inline-block;width:8px;height:13.5px;background:url('$!webPath/resources/image/ico-48.png') center center no-repeat;background-size:100% 100%;}
        
        .overlay_bg{height:100%;width:100%;background-color:rgba(0,0,0,.3);}
        .overlay_psAddr{display:none;position:fixed;top:0;bottom:0;right:0;left:0;z-index:889;}
        .overlay_psAddr *{padding:0;margin:0;}
        
        .bx_psAddr{position:absolute;top:50%;left:1em;right:1em;height:325px;margin-top:-162px;font-size:14px;line-height:1;color:#282828;
            background-color:#fff;-webkit-border-radius:5px;border-radius:5px;overflow:hidden;}
        .bx_psAddr .it-label{position:relative;line-height:44px;margin-bottom:10px;text-align:center;}
        .bx_psAddr .it-label .btn-close{position:absolute;right:0;top:0;width:40px;height:40px;text-align:center;}
        .bx_psAddr .it-label .btn-close .ico-49{margin-top:15px;}
        .bx_psAddr .it-label .btn-back{position:absolute;left:0;top:0;width:40px;height:40px;text-align:center;}
        .bx_psAddr .it-label .btn-back .ico-48{margin-top:15px;}
        .bx_psAddr .btn-msel{font-size:16px;line-height:48px;text-align:center;color:#fff;background-color:#B4282D;}
        
        .bd_psAddr1{height:223px;overflow:auto;}
        .bd_psAddr1 li{
            position:relative;margin-left:15px;padding:13px 40px 13px 22px;line-height:24px;border-bottom:1px solid #e5e5e5;}
        .bd_psAddr1 li:before{content:'';position:absolute;left:0;top:50%;width:12px;height:17px;margin-top:-8px;
            background:url('$!webPath/resources/image/ico-addr.png') center center no-repeat;background-size:100% 100%;}
        .bd_psAddr1 li.curr{color:#B4282D;}
        .bd_psAddr1 li.curr:after{content:'';position:absolute;right:1em;top:50%;width:14px;height:11px;margin-top:-6px;
            background:url('$!webPath/resources/image/ico-50.png') center center no-repeat;background-size:100% 100%;}
        
        .list_md_addr1{padding-left:13px;border-bottom:1px solid #e5e5e5;}
        .list_md_addr1 li{float:left;padding:8px 0;margin:0 13px;}
        .list_md_addr1 li.curr{-webkit-box-shadow:inset 0 -2px 0 #B4282D;}
        .list_md_addr2{height:240px;overflow:auto;}
        .list_md_addr2 li{position:relative;padding:0 36px 0 26px;line-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        .list_md_addr2 li:first-child{margin-top:8px;}
        .list_md_addr2 li:last-child{margin-bottom:8px;}
        .list_md_addr2 li.curr:after{content:'';position:absolute;right:1em;top:50%;width:14px;height:11px;margin-top:-6px;
            background:url('$!webPath/resources/image/ico-50.png') center center no-repeat;background-size:100% 100%;}
        .scrollbar_md0::-webkit-scrollbar-track{border-radius:9px;}
        .scrollbar_md0::-webkit-scrollbar{width:6px;}
        .scrollbar_md0::-webkit-scrollbar-thumb{border-radius:9px;background-color:rgba(178,178,178,0.5);}
        
        .s__hidden body{overflow:hidden;height:100%;}
        .s__hidden {overflow:hidden;height:100%;}
	</style>
	<style type="text/css">
		.img__activity{position:absolute;top:0;right:0;z-index:9;}
		.img__activity img{width:100%;height:100%;}
		.gd-silder{position:relative;}
		.gd-silder .img__activity{width:82px;height:60px;}
		.list-md2 .it-img{position:relative;}
		.list-md2 .it-img .img__activity{width:49px;height:36px;}
	</style>
	<style type="text/css">
        /*7-6 服务提示*/
        .ico_tip_fw{position:relative;overflow:hidden;padding:10px 26px 10px 12px;line-height:1;background:#f9f9f9;}
        .ico_tip_fw span{position:relative;float:left;max-width:100%;font-size:11px;line-height:12px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px 0;margin-right:1.5em;}
        .ico_tip_fw span:before{
            content:'';display:inline-block;width:12px;height:12px;margin-right:4px;vertical-align:-1.8px;
            background:url('$!webPath/resources/image/ico_tip_fw.png') center center no-repeat;background-size:cover;
        }
        .ico_tip_fw i{font-style:normal;}
        .ico_tip_fw:after {
            content:'';position:absolute;top:50%;right:12px;margin-top:-8px;width:8px;height:15px;
            background:url('$!webPath/resources/image/more1.png') center center no-repeat;background-size:100% 100%;
        }
        .ico_tip_fw2 {position:absolute;top:50%;left:50%;margin-top:-6px !important;width:12px;height:12px;
            background:url('$!webPath/resources/app/images/ico_tip_fw2.png') center center no-repeat;background-size:100% 100%;
        }
        .overlay_tip_fw,.overlay_tip_byg{display:none;}
        .overlay_tip__bg{position:fixed;top:0;left:0;bottom:0;right:0;background:rgba(0,0,0,0.6);z-index:90;}
        .overlay_tip__bd{position:fixed;left:0;bottom:0;right:0;background:#fff;color:#666;z-index:91;}
        .overlay_tip__bd *{padding:0;margin:0;}
        .overlay_tip__bd .it-tt{position:relative;padding:22px;font-size:15px;font-weight:500;line-height:1;text-align:center;}
        .overlay_tip__bd .it-btn{position:relative;z-index:11;font-size:15px;line-height:48px;text-align:center;color:#fff;background:#B4282D;}
        .overlay_tip__bd .it-con{overflow:scroll;min-height:120px;max-height:245px;padding:0 22px 28px;font-size:13px;line-height:22px;-webkit-box-sizing:border-box;box-sizing:border-box;}
        .overlay_tip__bd .it-close{position:absolute;right:0;top:0;width:59px;height:59px;}
        .overlay_tip_fw li{list-style:none;}
        .overlay_tip_fw li{padding:13px 0;border-bottom:1px solid #ddd;}
        .overlay_tip_fw li:first-child{padding-top:0;}
        .overlay_tip_fw li:last-child{border:none;}
        .overlay_tip_fw li h4{position:relative;padding-left:20px;margin-bottom:8px;font-size:13px;font-weight:600;color:#282828;}
        .overlay_tip_fw li div{padding-left:20px;}
        .overlay_tip_fw li h4:before{content:' ';position:absolute;left:0;top:50%;margin-top:-5px;width:9px;height:9px;background:url('$!webPath/resources/image/ico_tip_fw1.png') center center no-repeat;background-size:100% 100%;}

        /*7-6 他们说*/
        .lk__md0{position:relative;font-size:14px;line-height:1;padding:18px 0 16px;}
        .lk__md0:after{content:'';position:absolute;top:50%;right:0;margin-top:-7px;width:8px;height:15px;
            background:url('$!webPath/resources/image/more1.png') center center no-repeat;background-size:100% 100%;
        }
        .bx_lk_serve .lk__md0{margin-top:-18px;}
        .bx_lk_serve{position:relative;}
        .bx_lk_serve .it-sitem{display:block;padding:18px 12px 14px;color:#282828;background:#fff;}
        .bx_lk_serve .it-sitem .it-img{overflow:hidden;float:left;width:37px;height:37px;margin-right:10px;border:1px solid #ccc;-webkit-border-radius:50%;border-radius:50%;}
        .bx_lk_serve .it-sitem .it-img img{width:100%;height:100%;}
        .bx_lk_serve .it-sitem .it-info{overflow:hidden;padding-right:20px;line-height:1;}
        .bx_lk_serve .it-sitem .it-info h3{font-size:14px;margin:0;font-weight:400;}
        .bx_lk_serve .it-sitem .it-info p{height:26px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        .bx_lk_serve .it-sitem .it-info span{float:left;padding:3px 6px;margin:6px 7px 0 0;font-size:10px;color:#999;border:1px solid #999;-webkit-border-radius:2px;border-radius:2px;}
        .bx_lk_serve .it-sitem .it-con{font-size:14px;height:45px;margin-top:9px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
        .bx_lk_serve .s__phone{position:absolute;top:45px;right:0;width:36px;height:36px;text-align:center;}
        .bx_lk_serve .s__phone:after{content:' ';position:absolute;top:11px;right:12px;width:18px;height:18px;background:url('$!webPath/resources/image/ico-tel.png') center center no-repeat;background-size:100% 100%;}

        .bx_lk_serve .it-sitem .it-con *{font-size:14px !important;line-height:1.6 !important;}
        @media screen and (-webkit-min-device-pixel-ratio:2) {
            .bx_lk_serve .it-sitem .it-img,.bx_lk_serve .it-sitem .it-info span { border-width:0.5px; }
        }
        @media screen and (-webkit-min-device-pixel-ratio:3) {
            .bx_lk_serve .it-sitem .it-img,.bx_lk_serve .it-sitem .it-info span { border-width:0.333333px; }
        }
    </style>
	<script type="text/javascript" src="$!webPath/resources/libs/amazeui/js/jquery.min.js"></script>
	<script type="text/javascript" src="$!webPath/resources/weixin/js/base/idangerous.swiper.min.js"></script>
	<script type="text/javascript" src="$!webPath/resources/style/app/goodsEvaluation/js/dongsj.js"></script>  
	<style type="text/css">
		.download-bar{
			display:none;
		}
	</style>
</head>
<body>
#if($!defaultPage == "1")
	<div class="imgnone"><img style="width:100%;" src="$!webPath/resources/style/app/goodsEvaluation/image/xiajia_404@2x.png" /></div>
#else
    <style type="text/css">
        /*美创————Topbar*/
        #bxTopbar{background:#fff;}
        .h_44{height:45px;}
        .wp_topbar{height:45px;overflow:hidden;position:fixed;top:0;z-index:9999;width:100%;font-size:0;background:#fff;}
        .wp_topbar:after{content:'';position:absolute;bottom:0;left:-50%;z-index:10;width:200%;height:1px;background:#cccac9;-moz-transform:scale(0.5);-webkit-transform:scale(0.5);transform:scale(0.5);}
        .wp_topbar .it_back_btn{position:absoult;left:0;padding:14px 12px;margin-right:22px;}
        .wp_topbar .it_search_btn{float:right;padding:12px 12px;margin-left:17px;}
        .wp_topbar .it_share_btn{float:right;padding:13px 12px;margin-left:17px;}
        .wp_topbar .it_classify_btn{float:right;padding:8px 10px;margin-left:16px;}
        .it_cart_btn{flex:1;display:center;justify-content:center;align-items:center;}
        .wp_topbar .it_back_btn .ico_1{display:inline-block;width:9px;height:17px;background:url($!webPath/resources/image/ico_1.png) center center no-repeat;background-size:100% 100%;}
        .it_cart_btn .ico_3{display:inline-block;width:25px;height:21px;background:url($!webPath/resources/image/ico_3.png) center center no-repeat;background-size:100% 100%;flex:1;}
        .wp_topbar .it_toptt{font-size:17px;line-height:45px;text-align:center;font-weight:500;color:#282828;}
    </style>
    <!-- 美创————Topbar -->
    <div id="bxTopbar">
        <div class="bx_topbar">
            <div class="h_44"></div>
            <div class="wp_topbar">
                <div class="it_btn it_back_btn" onclick="javascript:history.back(-1);"><i class="icon ico_1"></i></div>
                
                <div class="it_toptt">详情</div>
            </div>
        </div>
    </div>
    
	<div class="main bg-gray">
		<div class="base-div bg-white">			
			<div class="nYsBx">
				<div class="gd-silder" style_="height:205px;">
					#if($!activityImageUrl)<span class="img__activity"><img src="$!activityImageUrl" /></span>#end
					#if($!goods.goods_inventory == 0)<div class="s__gdover"><span>已抢光</span></div>#end
					<div class="swiper-container">
						<div class="swiper-wrapper">
							#foreach($photo in $photos)
								<div class="swiper-slide"><img src="$!photo.picUrl" #if($!srcApp == 1 || $!srcApp == 'jyft') onerror="this.src='$!webPath/resources/image/default_jyft.png';" #else onerror="this.src='$!webPath/resources/image/default.png';" #end/></div>
							#end   
						</div>
						<div class="pagination"></div>
						<script type="text/javascript">
							$(function(){
								var mySwiper = new Swiper('.swiper-container',{
									pagination: '.pagination',
									loop:true,
									autoplay: 4500,
									grabCursor: true,                                
									paginationClickable: false,
									autoHeight:true
								});
								$('.swiper-container img').each(function() {
									//$(this).imgSetSize();
								});
							});
						</script>
						#if($!goods.qiang_flag != 0)
					<div class="goods-qiang-info am-g"> <!-- am-u-sm-10 am-u-md-10 am-u-lg-10 -->
						<div class=" am-text-left am-padding-0 settime">
							#if($!qiangInfo.qiangStatus == 1)
								<span class="am-text-default am-text-danger">抢购价</span><span class="am-icon-rmb am-text-default am-text-danger">&nbsp;$!goods.qiang_price_show&nbsp;&nbsp;&nbsp;&nbsp;</span>
							#end
							#if($!qiangInfo.qiangStatus != 3) ##尚未结束
							<p><b>限时购</b><span>抢购中</span></p>
								<p><span class="qiang-tip-header am-text-default am-text-gray">距离结束还剩余</span><span id="qiang-tip-time" class="qiang-tip-time am-text-default am-text-danger">$!qiangInfo.qiangSecondsShow</span>
							#end
							#if($!qiangInfo.qiangStatus == 1) ##尚未开始
								<span class="qiang-tip-header am-text-default am-text-gray"> 后开抢</span>
							#elseif($!qiangInfo.qiangStatus == 2) ##已经开始，尚未结束
								
								
							#else ##已经结束
								<span class="qiang-tip-header am-text-default am-text-danger">您来晚了，抢购已结束</span>
							#end
						</div>
					</div>
					#end
					</div>
				</div>
				<div id="goods-baseinfo" class="am-padding-sm">      
					<h3 class="am-padding-0">#if($!supportcoin == "1") <span class="tag-supportcoin">通宝</span>#end$!goods.goods_name</h3>
					<div class="goods-num-info am-g">        
						<div class="am-u-sm-8 am-u-md-8 am-u-lg-8 am-text-left am-padding-0 pricebox">
							#if($!isfree == 0)
								<span class="am-text-xl am-text-danger"><span style="font-size:14px;">限时价</span>¥$!goods.goods_current_price_show</span>
								<del>¥$!goods.goods_price_show</del>
							#else 
								<!-- <span class="am-text-l am-text-danger">免费预约 </span> -->
							#end
						</div>
						<div class="am-u-sm-4 am-u-md-4 am-u-lg-4 am-text-right am-padding-0">
								<span class="am-text-xl">&nbsp;</span><!-- 空的am-text-xl，使两边的行高一样 -->
							#if($!isfree == 0)
								<span>$!goods.goods_salenum</span>&nbsp;件已售
							#else            	
								<!-- 已预约 &nbsp;&nbsp;<span class="am-text-danger">$!goods.goods_salenum</span> 件 -->
								<span class="am-text-danger">$!goods.goods_click</span>人已浏览
							#end
						</div>
					</div>
					
					<div class="newshopall">
						#if($!transFeeDefault == 0)
						#if($!transFeeDefaultShow == '社区包邮购')
							<div onclick="tobaoyougou();" class="shopnewleft ico_tip_byg">$!transFeeDefaultShow</div>
						#else
							<div class="shopnewleft">$!transFeeDefaultShow</div>
						#end
						#elseif($!freePostFlag == '1')
					                    <div class="shopnewleft"><span>满$!more_amount件包邮</span></div>
						#elseif($!freePostFlag == '2')
					                    <div class="shopnewleft"><span>满$!more_amount包邮</span></div>
						#else
							<div class="shopnewleft">运费：<span>¥$!transFeeDefaultShow</span></div>
						#end
						<!-- div class="shopnewright">本品由$!storeName发货</div>
						<div class="shopnewright">
							<span class="fl it-name">$!storeName</span>
						</div -->
						<!--<div #if($!isApp == 1) onclick="javascript:toStoreGoodsList();" #end class="shopnewright shopnewright_lk_r99">
							<span class="fl it-name">$!storeName</span>
						</div>-->
					</div>
				</div><!-- /#goods-baseinfo -->
			</div><!-- /.base-div -->
		</div>
		<!-- 服务承诺  2 == $!srcApp &&-->
		#if( "1" == "$!ispromise")
		 <div class="ico_tip_fw" id="servicepromise" onclick="javascript:servicepromise();">
		   #foreach($service in $serviceList)
		      <span><i>$service.servicename</i></span>
		   #end
         </div>
         #if( 0== $!isApp)
        <div class="overlay_tip_fw">
        <div class="overlay_tip__bg"></div>
        <div class="overlay_tip__bd">
            <div class="it-tt">一家无忧购<span class="it-close"><i class="ico_tip_fw2"></i></span></div>
            <div class="it-con">
                <ul>
                  #foreach($service in $serviceList)
                    <li>
                        <h4>$service.servicename</h4>
                        <div>$service.serviceexplain</div>
                    </li>
		          #end
                  <!--   <li>
                        <h4>商品包税</h4>
                        <div>据国家政策规定，本商品适用于“跨境综合税”，商品已包税，无需再额外缴纳。</div>
                    </li>
                    <li>
                        <h4>假一赔十</h4>
                        <div>一家海购每一件商品都通过严苛的品质把关，保障正品，保障品质。特推出“假一赔十”的正品保障政策，杜绝一切假货，主您无忧购物。</div>
                    </li> -->
                </ul>
            </div>
            <div class="it-btn">确定</div>
        </div>
    </div>
         #end
       #end
       
		<!-- 促销 -->
		<div class="bx-promotesales clearfix" style="display:none;">
			<div class="it-label">促销</div>
			<ul class="it-con" id="cuxiao">
				<li class="clearfix">
					<span class="it-tt">赠品</span>
					<div class="it-des">新西兰丑橘，10斤装</div>
				</li>
				<li class="clearfix">
					<span class="it-tt">赠品</span>
					<div class="it-des">新西兰丑橘，10斤装,新西兰丑橘，100兰 丑橘，100</div>
				</li>
			</ul>
		</div>
		
		#if(2 == $!srcApp && "1" == "$!ishavespec")
		<div class="xtprice spec-trigger" id="chooseSpecBox" onclick="javascript:chooseSpec();">
			<div class="xtpriceleft spec-trigger">选择规格</div>
			<div class="rightradius spec-trigger"></div>
			<!-- <div class="xtpriceright spec-trigger" id="userSpec"></div> -->
			<div class="xtpriceright spec-trigger" id="props"></div>
		</div>
		#end  
		
		<!-- 配送 -->
		<div class="bx-destination clearfix" style="display:none;" id="bx-destination">
			<div class="it-label">送至</div>
			<div class="it-con">
				<div class="it-addr" id="addr_des">请选择配送地址</div>
				<div class="it-inventory" id="hasStork">有现货</div>
				<input type="hidden" id="addr_des_v">
				<input type="hidden" id="addr_des_jdAreaid">
			</div>
		</div>
		<!-- 遮罩层 -->
		<div class="overlay_psAddr" id="overlay_psAddr1">
			<div class="overlay_bg"></div>
			<div class="bx_psAddr bx_psAddr1">
				<div class="it-label">配送至 <span class="btn-close"><i class="ico-49"></i></span></div>
				<ul class="bd_psAddr bd_psAddr1 scrollbar_md0" id="bd_psAddr1">               
					<div style="text-align:center;padding:10rem 1em;font-size:1.5rem;">您还没有配置地址，赶快选择地址吧</div>
				</ul>
				<div class="btn-msel">选择其他地址</div>
			</div>
		</div>
		<div class="overlay_psAddr" id="overlay_psAddr2">
			<div class="overlay_bg"></div>
			<div class="bx_psAddr bx_psAddr2">
				<div class="it-label">配送至 
					<span class="btn-back"><i class="ico-48"></i></span>
					<span class="btn-close"><i class="ico-49"></i></span>
				</div>
				<div class="bd_psAddr bd_psAddr2">
					<ul class="list_md_addr1 clearfix">
						<li class="curr" level='1'>请选择</li>
					</ul>
					<ul class="list_md_addr2 scrollbar_md0" id="list_md_addr2">
						<!-- <li class="curr" value="1" level="1">北京市</li> -->
					</ul>
				</div>
			</div>
		</div>
		

		<!--他们说start-->
		#if("1"=="$!isRemark")
		<div class="bx_lk_serve" style="margin-top:10px;">
            <a class="it-sitem" href="javascript:;" onclick="gotoReGoodsList();">
                <div class="lk__md0">TA们为您服务</div>
                <div class="clearfix">
                    <div class="it-img">
                    	#if($!chosenUser.avart)
                    	<img src="$!chosenUser.avart" />
                    	#else
                    	<img src="$!webPath/resources/style/app/goodsEvaluation/image/logo.png" />
                    	#end
                    </div>
                    <div class="it-info">
                        <h3>$!chosenUser.rolename - $!chosenUser.username</h3>
                        <p class="clearfix">
						#foreach($summary in $chosenUserRemark)
                        <span>$!summary</span>
						#end
                        </p>
                    </div>
                </div>
                <div class="it-con">
                    $!chosenInfo.redetail
                </div>
            </a>
            #if("1"=="$!userHavePhone")
            <a class="s__phone" href="javascript:;" onclick="toPhone('$!userPhone')" id="reGoodsUserPhone" it_name="$!chosenUser.rolename - $!chosenUser.username" it_tel="$!userPhone"></a>
            #end
        </div>
		#end
		
		<!--他们说end-->	

		<!-- 相关推荐 -->
		#if("1" == "$!isrecommend")
			#if($!srcApp == 1 || $!srcApp == 'jyft') 
			<!-- 足球 -->
			#else
			<!-- 一家 -->  
			<div class="det-rmd">
				<div class="det-rmd-tt">猜你还喜欢</div>
				<div class="list-md2-bx">
					<ul class="list-md2 clearfix">
						#foreach($recommendGoods in $recommendGoodsList)
						<li class="item"  onclick="javascript:togoodsdetail('$!recommendGoods.goodstypepool','$!recommendGoods.goodsId','$!recommendGoods.url');">
							<div class="it-img">
								#if($!recommendGoods.activityImageUrl)<span class="img__activity"><img src="$!recommendGoods.activityImageUrl" /></span>#end
								<img src="$!recommendGoods.mainPhoto.smallPicUrl" />
							</div>
							<div class="it-tt">$!recommendGoods.name</div>
							<div class="it-price clearfix"><span class="fl it-p0">¥$!recommendGoods.currentPriceShow</span></div>
						</li>
						#end
					</ul>
				</div>
			</div>        
			#end
		#end
		
		#if($!goods.getGc().getClassName() == "定制旅游")
		<div class="dz_lk_travel link_to_view" data-source="11" style="margin-top:10px;"
				data-url="${o2oBaseUrl}app/customize/travel.htm?source=商品详情页&share=0&title=告诉我您的需求，一家为您量身打造专享服务方案&discript=美好生活，为您定制！&picUrl=${o2oBaseUrl}/assets/customize/images/icon.jpg"
				data-share="${o2oBaseUrl}app/customize/travel.htm?source=商品详情页&share=0&title=告诉我您的需求，一家为您量身打造专享服务方案&discript=美好生活，为您定制！&picUrl=${o2oBaseUrl}/assets/customize/images/icon.jpg">
			<a><img width="100%" src="$!webPath/resources/app/images/dz_lk_travel.png" /></a>
		</div>
		#end
		
		<div id="goods-details" class="goods-details am-margin-top-sm am-padding-sm bg-white details-content">
			<span id="widthRef" class="width-ref"></span><!-- 宽度的基准 -->
			##$!goods.goods_details
			$!goods.goodsDetailsWidthDefaultImage
		</div><!-- /#goods-details -->
		
		#if($!goods.getGc().getClassName() == "定制旅游")
		<div class="dz_lk_travel link_to_view" data-source="11" style="margin-top:10px;"
				data-url="${o2oBaseUrl}app/customize/travel.htm?source=商品详情页&share=0&title=告诉我您的需求，一家为您量身打造专享服务方案&discript=美好生活，为您定制！&picUrl=${o2oBaseUrl}/assets/customize/images/icon.jpg"
				data-share="${o2oBaseUrl}app/customize/travel.htm?source=商品详情页&share=0&title=告诉我您的需求，一家为您量身打造专享服务方案&discript=美好生活，为您定制！&picUrl=${o2oBaseUrl}/assets/customize/images/icon.jpg">
			<a><img width="100%" src="$!webPath/resources/app/images/dz_lk_travel.png" /></a>
		</div>
		#end
	</div><!-- /.main -->
	
	<style type="text/css">
        /*美创————底部*/
        .h_48{height:48px;}
        .wp-ft-fixed{
            display:-webkit-box;display:-moz-box;display:-ms-box;display:-webkit-flex;display:flex;
            -moz-align-items:center;-webkit-align-items:center;align-items:center;justify-content:space-between;
            overflow:hidden;position:fixed;bottom:0;z-index:9999;width:100%;height:48px;font-size:16px;line-height:48px;background:#fff;border-top:1px solid #ddd;text-align:center;}
        .wp-ft-fixed .btn_ico{position:relative;width:15.2%;height:100%;}
        .wp-ft-fixed .btn_ico b{display:block;font-size:11px;line-height:1;margin-top:29px;color:#949494;font-weight:400;}
        .wp-ft-fixed .btn_ico:after{content:'';position:absolute;top:15px;bottom:16px;right:0;width:1px;background:#8e8e8e;}
        .wp-ft-fixed .btn_ico:before{content:'';position:absolute;top:10px;left:50%;margin-left:-7px;width:15px;background-repeat:no-repeat;background-position:center center;background-size:100% 100%;}
        .wp-ft-fixed .btn_ico_00:before{height:14px;background-image:url($!webPath/resources/image/ico_00.png);}
        .wp-ft-fixed .btn_ico_01:before{height:15px;background-image:url($!webPath/resources/image/ico_01.png);}
        .wp-ft-fixed .btn_cart{width:115px;font-weight:500;color:#B4282D;}
        .wp-ft-fixed .btn_buy{width:115px;font-weight:500;color:#fff;background:#B4282D;}
        /*美创————遮罩规格*/
        .overlay_standard{display:none;}
        .overlay_bg_standard{position:fixed;bottom:0;top:0;left:0;right:0;z-index:10010;background-color:rgba(0,0,0,0.5);}
        .overlay_mk_standard{position:fixed;bottom:0;left:0;right:0;z-index:10010;/*max-height:80%;*/max-height:400px;font-size:16px;line-height:1;color:#282828;background-color:#fff;}
        .overlay_mk_standard .it-info{padding:12px 14px;border-bottom:1px solid #e5e5e5;}
        .overlay_mk_standard .it-info .it-tt{padding-right:60px;font-size:18px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
        .overlay_mk_standard .it-info .it-price{margin-top:8px;color:#ff3c30;line-height:1;}
        .overlay_mk_standard .it-con{overflow-x:hidden;overflow-y:scroll;max-height:250px;}
        .overlay_mk_standard .it-standard{}
        .overlay_mk_standard .it-standard .item{margin-left:14px;padding:12px 14px 10px 0;border-bottom:1px solid #e5e5e5;}
            .overlay_mk_standard .it-standard .item:last-child{border:none;}
        .overlay_mk_standard .it-standard .it-tt{margin-bottom:18px;}
        .overlay_mk_standard .it-standard .it-tm span{float:left;margin:0 15px 10px 0;padding:0 12px;font-size:13px;line-height:24px;background-color:#f5f5f5;color:#282828;-webkit-border-radius:4px;border-radius:4px;}
        .overlay_mk_standard .it-standard .it-tm span.curr{background-color:#B4282D;color:#fff;}
        .overlay_mk_standard .it-standard .it-tm span.disabled{color:#a4a4a4;}
        .overlay_mk_standard .it-cals{margin-left:14px;padding:15px 14px 15px 0;line-height:30px;border-top:1px solid #e5e5e5;}
        .overlay_mk_standard .it-cals .bx-cals{}
        .overlay_mk_standard .it-cals .bx-cals var{position:relative;float:left;width:30px;height:30px;}
        .overlay_mk_standard .it-cals .bx-cals span{position:absolute;top:5px;left:5px;width:20px;height:20px;background-color:#f5f5f5;}
        .overlay_mk_standard .it-cals .bx-cals span i.icon{-webkit-transform:scale(1.3);transform:scale(1.3);vertical-align:top;}
        .overlay_mk_standard .it-cals .bx-cals b{float:left;min-width:20px;text-align:center;margin:0 5px;font-weight:500;}
        .overlay_mk_standard .bx-cals .icon{display:inline-block;width:20px;height:20px;background-repeat:no-repeat;background-position:center center;background-size:100% 100%;}
        .overlay_mk_standard .bx-cals .ico-14{background-image:url($!webPath/resources/image/ico_04.png);}
        .overlay_mk_standard .bx-cals .ico-13{background-image:url($!webPath/resources/image/ico_03.png);}
        .overlay_mk_standard .btn-close{position:absolute;top:3px;right:0;width:42px;height:42px;}
        .overlay_mk_standard .btn-close .ico-15{display:inline-block;margin:10px;width:22px;height:22px;background:url($!webPath/resources/image/ico_02.png) center center no-repeat;background-size:100% 100%;}
        .overlay_mk_standard .it-btns{height:48px;font-size:16px;line-height:48px;font-weight:500;color:#fff;text-align:center;}
        .overlay_mk_standard .it-btns .it_btn{float:left;width:50%;color:#fff;background:#B4282D;}
        .overlay_mk_standard .it-btns .btn_cart{background:#f38e22;width:115px;}
		.butbox{display:flex;height:48px;}
    </style>
    <input id="isSelected" type="hidden" value="0">
    <!-- 美创————底部 -->
    <div class="bx-ft-fixed">
        <div class="h_48"></div>
        <div class="wp-ft-fixed">
            <!-- <div class="btn_ico btn_ico_00"><b>客服</b></div> -->
            <!-- <div class="btn_ico btn_ico_01"><b>123</b></div> -->
			<div class="it_btn it_cart_btn"><i class="icon ico_3"></i></div>
            <div class="butbox">
				<div class="btn_cart">加入购物车</div>
				<div class="btn_buy">立即购买</div>
			</div>
        </div>
    </div>
    <!-- 美创————遮罩规格 -->
    <div class="overlay_standard">
        <div class="overlay_bg_standard"></div>
        <div class="overlay_mk_standard" id="mkStandard">
            <div class="it-info">
                <div class="it-tt ft34">$!goods.goods_name</div>
                <div class="it-price ft28">$!goods.goods_current_price_show</div>
            </div>
            <div class="it-con">
                <div class="it-standard" id="properties">
                    <!-- <div class="item">
                        <p class="it-tt ft30">尺码</p>
                        <div class="it-tm ft26 clearfix">
                            <span class="curr">M</span><span class="disabled">X</span><span>XL</span><span>XXL</span>
                        </div>
                    </div>
                    <div class="item">
                        <p class="it-tt ft30">颜色</p>
                        <div class="it-tm ft26 clearfix">
                            <span class="curr">红色1-0</span><span class="disabled">红色1红色1红色1-0</span><span>红色1红色1红色1-0</span><span>红色1-0</span><span>红色1-0</span><span>红色1-0</span>
                            <span>红色1-0</span><span>红色1红色1红色1红色1-0</span>
                        </div>
                    </div> -->
                </div>
                <textarea id="prop_t" style="display:none">
		        	<div class="item">
		                <p class="it-tt ft30">尺码</p>
		                <div class="it-tm ft26 clearfix">
		                    
		                </div>
		            </div>   
		        </textarea>
                <div class="it-cals ft30 clearfix">
                    <span class="fl">数量</span>
                    <div class="bx-cals fr">
                        <var class="btn_minus"><span><i class="icon ico-14"></i></span></var>
                        <b class="t_num" id="count">1</b>
                        <var class="btn_plus"><span><i class="icon ico-13"></i></span></var>
                    </div>
                </div>
            </div>
            <div class="btn-close"><i class="icon ico-15"></i></div>
            <div class="it-btns ft30 clearfix">
                <!-- <span class="it_btn btn_cart">加入购物车</span>
                <span class="it_btn btn_buy">立即购买</span> -->
                <span class="it_btn bg_a2e542" style="width:100%" id="selectProp">确定</span>
            </div>
        </div>
    </div>
#end

#if($!defaultPage == "0")
	#if($!isfree == 0 && $!srcApp == 2)
		<iframe src="$!webPath/app/goods/evaluation.htm?goodsId=$!goods.id" id="iframepage" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" onLoad="iFrameHeight()"></iframe>
	#end
#end

<script type="text/javascript" language="javascript">   
function iFrameHeight() {   
	var ifm= document.getElementById("iframepage");   
	var subWeb = document.frames ? document.frames["iframepage"].document : ifm.contentDocument;   
	if(ifm != null && subWeb != null) {
	   ifm.height = subWeb.body.scrollHeight;
	   ifm.width = subWeb.body.scrollWidth;
	}
}
</script>
<!-- script src="$!webPath/resources/app/js/touchEvent.min.js" type="text/javascript"></script-->
<script src="$!webPath/resources/assets/js/jquery-bigic.js"></script>
<script src="$!webPath/resources/libs/amazeui/js/amazeui.min.js"></script>  
<script src="$!webPath/resources/assets/js/utils.js?v=2017-05-11"></script>
<script src="$!webPath/resources/app/js/imgSetSize.min.js?v=2017-04-22_100519" type="text/javascript"></script>  
<script src="https://static.mlinks.cc/scripts/dist/mlink.min.js"></script>
<script>
	$(function() {
		var _sli = $('.list-md2').find('.item');
		var _nli = _sli.length;
		var _wli = _sli.eq(0).width();
		var _wliML = _sli.eq(0).css('marginLeft');
		console.log(_sli, _nli, _wli, _wliML, parseFloat(_wliML))
        $('.list-md2').width(Math.ceil(parseFloat(_wliML) + _wli) * _nli);
		
		$(".det-rmd li img").each(function(){
			$(this).imgSetSize();
		});		
	});
       
</script>
<script type="text/javascript">
	// var isAppInstalled = Utils.querystringparse()["isappinstalled"];    
	//var isApp = "$!isApp"==="true" || "$!isApp"==="1" || ("1" === isAppInstalled ? 1 : 0);
	//var isApp = "$!isApp"==="true" || "$!isApp"==="1";
	var isApp = "${_isApp}";
	Utils.lsRemove("_isApp");
	var appversion = "${_appversion}" || "${appversion}";
	var srcApp = '$!srcApp';
	var url ="soonchinayijia://o2o.yijiahn.com/outsideOpenApp?type=selectgoods&accessUrl=$!goods.id";
	jQuery(function(){	  	
		Utils.showDownloadBar(isApp, srcApp);//添加DLBar条
		//初始化H5页面和App交互的消息的事件
		Utils.initH5ToAppMsgs(jQuery, isApp, appversion);
		if(Utils.isiOs()){
			new Mlink({
				mlink : "http://a.mlinks.cc/Aa9g?type=selectgoods&accessUrl=$!goods.id",
				button : document.querySelector("a.download-link")
			}); 
		}
	});  

	(function($) {
		#if($!{qiangInfo.qiangSeconds})
			Utils.countdown($!qiangInfo.qiangSeconds, function(seconds, secondsShow, intervalId){
				$('#qiang-tip-time').text(secondsShow);
				if(seconds <= 0){
					clearInterval(intervalId);
					location.reload(true);
				}
			});
		#end
		//自动调整图片的宽度
		resizeImage();
		$(window).resize(function(){
			resizeImage();
		});

		$(function() {
			if($('#photo-slider-ul').data('size') <= 1){//只有一个图片的时候不滚动
				$('#photo-slider').flexslider('stop'); //停止
				var slider = $('#photo-slider').data('flexslider');
				slider.vars.touch=false;
				slider.animating = true;
			}
		});//doc ready
		
		/**
		 * 自动调整图片的宽度
		 */
		function resizeImage(){
			var widthRef = $('#widthRef').width();
			$('#goods-details img').width(widthRef);
		}
	})(jQuery);    
</script>
<!-- 商品属性处理 -->
<script type="text/javascript">
//服务承诺
	$(function() {
		$('.ico_tip_fw').click(function() {
			   $('.overlay_tip_fw').show();
			});
			$('.overlay_tip__bg').click(function() {
			   $('.overlay_tip_fw,.overlay_tip_byg').hide();
			});
			$('.overlay_tip__bd').on('click', '.it-btn', function() {
			   $('.overlay_tip_fw,.overlay_tip_byg').hide();
			}).on('click', '.it-close', function() {
			   $('.overlay_tip_fw,.overlay_tip_byg').hide();
			})
	})

	function servicepromise(){
		Utils.sendMsgToApp("/servicepromise?url=app/goods/servicepromise.htm?goodsid=$!goods.id");
	}
	
	function chooseSpec(){
			//Utils.sendMsgToApp("/choseSpec?callback=setSpec");	
	}
	function togoodsdetail(goodstypepool,goodsId,detailUrl){
			var isApp = "${isApp}";
		    if(isApp==1){
				if(goodstypepool!='3'){
					Utils.sendMsgToApp("/link_to_detail?source=6&refid="+goodsId);	
				}else{
					window.location.href=detailUrl;
				}
			}else{
				window.location.href=detailUrl;
			}
		 
	}
	function toStoreGoodsList(){
			Utils.sendMsgToApp("/toStoreGoodsList?orgId=$!orgId&storeId=$!storeId&storeName=$!storeName");	
	}
	function setSpec(specs){
		if(specs && specs != ''){
			//jQuery("#userSpec").html(specs.replace(/,/g, ','));
			specs = specs.replace(/\s*,\s*$/g, "");
			jQuery("#userSpec").html(specs);
		}
	}

	function tobaoyougou(){
			var isApp = "${isApp}";
		    if(isApp==1){
				Utils.sendMsgToApp("/servicepromise?url=app/shipfree/introduce.htm");	
			}else{
				window.location.href=detailUrl;
			}
		 
	}
</script>
<!-- 微信分享 -->
<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>   
	dongsjFunc.wxConfig('$!appId', '$!timestamp', '$!nonceStr', '$!signature', false, []);		
	wx.ready(function () {
// 	alert(location.href.split("#")[0]);
// 	alert('$!weixinShare_title');$!srcApp
// 	alert('$!weixinShare_desc');
// 	alert('$!weixinShare_imgurl');
		dongsjFunc.wxShare({
			title: '$!weixinShare_title',
			desc: '$!weixinShare_desc',
			link: location.href.split("#")[0],
			imgUrl: '$!weixinShare_imgurl'
		});
	}); 
</script>
<script type="text/javascript">
	$(function(){
		//点击图片时调用App原生的图片查看器
		// 	$("body").on("click", ".details-content img", function(){
		// 		var attrSrc = $(this).attr("src");
		// 		Utils.sendMsgToApp("/showImg#"+encodeURIComponent(attrSrc));
		// 	});
		
		//点击视频时调用App原生的图片查看器
		/* $("body").on("click", ".video-pic", function(){
			var _this = $(this);	
			if(isApp === "true"){//App中使用App的播放器
				var flv = _this.data("flv");
				var mp4 = _this.data("mp4");
				Utils.sendMsgToApp("/videoPlay?videoFlv=" + encodeURIComponent(flv) + "&videoMp4=" + encodeURIComponent(mp4));
			} else {//非App中使用H5的播放器
				_this.hide();
				var video = _this.siblings("video").get(0);
				setTimeout(function(){
					video.play();
				},1000);
			}	
		}); */
		if(!Utils.isApp()){
			$('.details-content img').bigic(); 
		}
	});
</script>	
<!-- 京东配送至地址选择 -->
<script type="text/javascript" src="$!webPath/resources/app/js/store.min.js"></script>
<script type="text/javascript" src="$!webPath/resources/app/js/L_addr.js?v=3"></script>
<script>
$(function() {

    function _isTouchDevice() {
        try {
            document.createEvent("TouchEvent");
            return true;
        } catch (e) {
            return false;
        }
    }
    function _touchScroll(id) {
        if (_isTouchDevice() ) {
            var el = document.getElementById(id);
            var scrollStartPos = 0;
            document.getElementById(id).addEventListener("touchstart", function(e) {
                scrollStartPos = this.scrollTop + e.touches[0].pageY;
            }, false);
            document.getElementById(id).addEventListener("touchmove", function(e) {
                this.scrollTop = scrollStartPos - e.touches[0].pageY;
            }, false);
        }
    }
    _touchScroll("bd_psAddr1");
    // 弹出地址遮罩
    $('#bx-destination').on('click', function(e) {
        $('#overlay_psAddr1').show();
        
        var s__t = $(document.body).scrollTop() || 0;$('html').addClass('s__hidden').attr({"s__t": s__t});
    });

    // 选择地址遮罩1
    $('#overlay_psAddr1').on('click', '.btn-close', function(e) {
        $('#overlay_psAddr1').hide();
        var s__t = $('html').attr('s__t') || 0;$('html').removeClass('s__hidden').find('body').scrollTop(s__t);
    }).on('click', '.btn-msel', function(e) {
        $('#overlay_psAddr1').hide();
        $('#overlay_psAddr2').show();

        $('.bd_psAddr2').L_addr({
            url: "$!webPath/app/jdarea/children.json",
            data: {
                jdAreaid: ''
            },
            callback: function(res) {
                $('#overlay_psAddr2').hide();
                $('#addr_des').text(res.addr);
                $('#addr_des_v').val(res.addr);
                $('#addr_des_jdAreaid').val(res.addrId);
                var jdAreaId = res.addrId;
                checkJdGift(jdAreaId,'');
                
                $(".bd_psAddr1").children().removeClass('curr');
                var s__t = $('html').attr('s__t') || 0;$('html').removeClass('s__hidden').find('body').scrollTop(s__t);
            }
        })
    }).on('click', '.bd_psAddr1 li', function(e) {
        $(this).addClass('curr').siblings('li').removeClass('curr');
        $('#overlay_psAddr1').hide();
        
        var addr =  $(this).find('.it-addr');
        $('#addr_des').text(addr.text());
        $('#addr_des_v').val(addr.text());
        $('#addr_des_jdAreaid').val(addr.data("jdareaid"));
        
        var s__t = $('html').attr('s__t') || 0;$('html').removeClass('s__hidden').find('body').scrollTop(s__t);
        
        checkJdGift(addr.data("jdareaid"), addr.data("addressid"));
    });
    // 选择地址遮罩2
    $('#overlay_psAddr2').on('click', '.btn-back', function(e) {
        $('#overlay_psAddr2').hide();
        $('#overlay_psAddr1').show();
    }).on('click', '.btn-close', function(e) {
        $('#overlay_psAddr2').hide();
        var s__t = $('html').attr('s__t') || 0;$('html').removeClass('s__hidden').find('body').scrollTop(s__t);
    });
});
$(document).ready(function(){
	if('$!isJDstore' == '1'){
		jdGoodsInit();
	}
});
function jdGoodsInit(){
	$.ajax({
        url: "$!webPath/app/jdgoods/otherdefault.json",
        data: {
            goodsId:'$!goods.id',
            orgId:'$!orgId',
            access_token:'$!accessToken'
        },
        dataType: "json",
        success: function(res) {
            if (res && '100' == res.code) {
            	if(res.data.gift){
            		$("#cuxiao").empty();
            		var cuxiaoHtml = "";
            		if(res.data.gift.gifts){
	            		var gifts = res.data.gift.gifts;
	            		for(var i = 0; i < gifts.length; i++){
	            			var giftItem = gifts[i];
	            			cuxiaoHtml = cuxiaoHtml + '<li class="clearfix"><span class="it-tt">';
	            			if(giftItem.giftType == '2'){
		            			cuxiaoHtml = cuxiaoHtml + '赠品';
	            			}else{
		            			cuxiaoHtml = cuxiaoHtml + '附件';
	            			}
	            			cuxiaoHtml = cuxiaoHtml + '</span><div class="it-des">'
	            			cuxiaoHtml = cuxiaoHtml + giftItem.name;
	            			cuxiaoHtml = cuxiaoHtml + '</div></li>';
	            		}
	            		$("#cuxiao").append(cuxiaoHtml);
	            		$(".bx-promotesales").show();
            		}
            	}
            	
            	if(res.data.userAddresses){
            		$(".bd_psAddr1").empty();
            		var userAddresses = res.data.userAddresses;
            		var defaultAddress = null;
            		
            		var userAddressesHtml = "";
            		for(var i = 0; i < userAddresses.length; i++){
            			var sendto = userAddresses[i];
            			var addr_des = "";
                		var addr_des_jdAreaid = "";
                		var addressid=sendto.addressid;
                		if(sendto.detail){
                			addr_des = sendto.detail;
                		}
            			if(sendto.province && sendto.province.jdAreaId){
                			addr_des_jdAreaid = sendto.province.jdAreaId;
                		}
                		if(sendto.city && sendto.city.jdAreaId){
                			addr_des_jdAreaid = sendto.city.jdAreaId;
                		}
                		if(sendto.county && sendto.county.jdAreaId){
                			addr_des_jdAreaid = sendto.county.jdAreaId;
                		}
                		if(sendto.town && sendto.town.jdAreaId){
                			addr_des_jdAreaid = sendto.town.jdAreaId;
                		}
            			if(i==0){
            				defaultAddress = addr_des;
            			}
            			userAddressesHtml = userAddressesHtml + 
            				'<li><div class="it-addr"  data-addressid="'+addressid+'" data-jdareaid="'+addr_des_jdAreaid+'">'+addr_des+'</div></li>';
            		}
            		$(".bd_psAddr1").append(userAddressesHtml);
            		if(defaultAddress){
                		//$('#addr_des').text(defaultAddress);
                	}
            	}
            	
            	if(res.data.sendto){
            		var sendto = res.data.sendto;
            		var addr_des = "";
            		var addr_des_v = "";
            		var addr_des_jdAreaid = "";
            		if(sendto.province){
        				if(sendto.province.jdAreaName){
                			addr_des = addr_des + sendto.province.jdAreaName;
        				}
            			addr_des_jdAreaid = sendto.province.jdAreaId;
            		}
            		if(sendto.city){
            			if(sendto.city.jdAreaName){
                			addr_des = addr_des + sendto.city.jdAreaName;
            			}
            			addr_des_jdAreaid = sendto.city.jdAreaId;
            		}
            		if(sendto.county  && sendto.county.jdAreaName){
            			if(sendto.county.jdAreaName){
                			addr_des = addr_des + sendto.county.jdAreaName;
            			}
            			addr_des_jdAreaid = sendto.county.jdAreaId;
            		}
            		if(sendto.town && sendto.town.jdAreaName){
            			if(sendto.town.jdAreaName){
                			addr_des = addr_des + sendto.town.jdAreaName;
            			}
            			addr_des_jdAreaid = sendto.town.jdAreaId;
            		}
            		addr_des_v = addr_des;
            		$("#addr_des").text(addr_des);
            		$("#addr_des_v").val(addr_des_v);
            		$("#addr_des_jdAreaid").val(addr_des_jdAreaid);
            	}
            	
            	if(res.data.hasStork){
            		if(res.data.hasStork=='33'){
	            		$("#hasStork").text("现货");
            		}else if(res.data.hasStork=='39'){
	            		$("#hasStork").text("现货，下单后2~6天发货");
            		}else if(res.data.hasStork=='40'){
	            		$("#hasStork").text("现货，下单后从有货仓库配货");
            		}else if(res.data.hasStork=='36'){
	            		$("#hasStork").text("预订");
            		}else if(res.data.hasStork=='34'){
	            		$("#hasStork").text("无货");
            		}else if(res.data.hasStork=='0'){
	            		$("#hasStork").text("无货");
            		}else{
	            		$("#hasStork").text("无货");
            		}
            	}else{
            		$("#hasStork").text("无货");
            	}
            	var addr_des_jdAreaid=$("#addr_des_jdAreaid").val();
            	if(addr_des_jdAreaid && addr_des_jdAreaid!=''){//有值
            		Utils.sendMsgToApp("/getjdgoodsinfo?goodsId=$!goods.id&jdAreaid="+$("#addr_des_jdAreaid").val());
            	}else{
            		Utils.sendMsgToApp("/getjdgoodsinfo?goodsId=$!goods.id");
            	}
            	
            	
            	$(".bx-destination").show();
            }
        }
    });
}
function checkJdGift(jdAreaId,addressid){
	$('.bx-promotesales').hide();
	if(!jdAreaId){
		return;
	}
	$.ajax({
        url: "$!webPath/app/jdgoods/otherchange.json",
        data: {
            jdAreaid: jdAreaId,
            addressid: addressid,
            goodsId:'$!goods.id',
            access_token:'$!accessToken'
        },
        dataType: "json",
        success: function(res) {
            if (res && '100' == res.code) {
            	if(res.data.gift){
            		$("#cuxiao").empty();
            		var cuxiaoHtml = "";
            		if(res.data.gift.gifts){
	            		var gifts = res.data.gift.gifts;
	            		for(var i = 0; i < gifts.length; i++){
	            			var giftItem = gifts[i];
	            			cuxiaoHtml = cuxiaoHtml + '<li class="clearfix"><span class="it-tt">';
	            			if(giftItem.giftType == '2'){
		            			cuxiaoHtml = cuxiaoHtml + '赠品';
	            			}else{
		            			cuxiaoHtml = cuxiaoHtml + '附件';
	            			}
	            			cuxiaoHtml = cuxiaoHtml + '</span><div class="it-des">'
	            			cuxiaoHtml = cuxiaoHtml + giftItem.name;
	            			cuxiaoHtml = cuxiaoHtml + '</div></li>';
	            		}
	            		$("#cuxiao").append(cuxiaoHtml);
	            		$(".bx-promotesales").show();
            		}
            	}
            	
            	if(res.data.hasStork){
            		if(res.data.hasStork=='33'){
	            		$("#hasStork").text("现货");
            		}else if(res.data.hasStork=='39'){
	            		$("#hasStork").text("现货，下单后2~6天发货");
            		}else if(res.data.hasStork=='40'){
	            		$("#hasStork").text("现货，下单后从有货仓库配货");
            		}else if(res.data.hasStork=='36'){
	            		$("#hasStork").text("预订");
            		}else if(res.data.hasStork=='34'){
	            		$("#hasStork").text("无货");
            		}else if(res.data.hasStork=='0'){
	            		$("#hasStork").text("无货");
            		}else{
	            		$("#hasStork").text("无货");
            		}
            	}else{
            		$("#hasStork").text("无货");
            	}
            	Utils.sendMsgToApp("/getjdgoodsinfo?goodsId=$!goods.id&jdAreaid="+jdAreaId);
            }
        }
    });
}
</script>
<script type="text/javascript">

		function toPhone(userphone){
			if(userphone){
            var isVersion = Utils.checkAppversion(appversion, "2.3.1");
            if(isVersion){
              Utils.sendMsgToApp('/usephone?phonenum='+userphone);
            }else{
              var isIos = Utils.isiOs();
              if(isIos){
                Utils.sendMsgToApp('/usephone?phonenum=='+userphone);
              }else{
                Utils.sendMsgToApp('/usephone?phonenum='+userphone);
              }
            }
          }
		}
		function gotoReGoodsList(){
			var url = '$!webPath/app/goods/regoodslist.htm?_close=1srcApp=$!srcApp&id=$!goods.id';

			var isVersion = Utils.checkAppversion(appversion, "2.3.1");
            if(isVersion){
               Utils.sendMsgToApp('/openview?url='+Utils.encodeURIComponent(url));
            }else{
               window.location.href=url;
            }
			 
			  // window.location.href='$!webPath/app/goods/regoodslist.htm?_close=1srcApp=$!srcApp&id=$!goods.id';
		}
	
		</script>

<!-- 规格属性 -->	
<script type="text/javascript">
		var _accessToken = "$!accessToken";
		var _orgId = "$!orgId";
		var goodsId = $!goods.id;
		window.inventoryType = "";
		window.inventory = 0;
		window.diMap = {};
		function showSelectDialog() {
			$('.overlayBG,#mkStandard').show();
			$('.overlay_standard').show();
		}
		function hideSelectDialog() {
			$('.overlayBG,#mkStandard').hide();
			$('.overlay_standard').hide();
		}
		//加载规格
		function getPropParams(showDialogflag) {
			$.get("$!webPath/app/goods/params.json?goodsId=" + goodsId, function(result) {
            	if (result.code == "100") {
            		if (null == showDialogflag) {   
            			showDialogflag = true;        			
            		}
            		if (showDialogflag) {
            			showSelectDialog();	  
            		}
            		$("#properties").html("");
            		var template = $("#prop_t").val();
            		//库存价格
            		var inventoryType = result.data.inventoryType;
            		window.inventoryType = inventoryType;
            		window.inventory = inventory;
            		var detailInventory = result.data.detailInventory;
            		window.diMap = {};
            		for (var i = 0; i < detailInventory.length; i++) {
            			var di = detailInventory[i];
            			var id = propIdReindex(di.id);
            			var price = di.price;
            			var count = di.count;
            			var pc = {};
            			pc.price = price;
            			pc.count = count;
            			diMap[id] = pc;
            		}
            		//规格
            		var params = result.data.params;
            		for (var i = 0; i < params.length; i++) {
            			var pt = $(template);
            			$("#properties").append(pt);
            			var param = params[i];
            			var paramId =  param.paramId;
            			pt.find(".it-tt").text(param.paramName)
            			var it = pt.find(".it-tm");
            			var props = param.props;
            			it.html("");
            			for (var j = 0; j < props.length; j++) {
            				var prop = props[j];
            				var propId = prop.propId; 
            				var propValue = prop.propValue; 
            				var ts = '<span index=' + i + ' class="prop" id="' + propId +'">' + propValue + '</span>';
            				it.append($(ts));
            			}
            		}
            		initPropCur();
            		initPropEvent(diMap);
            	} else {
            		Utils.showToast(result.msg);
            	}
            });
		}
		function propIdReindex(id) {
			if (null == id || "" == id) {
				return "";
			}
			var ids = id.split("_");
			ids.sort();
			var newId = "";
			for (var i in ids) {
				if (null == ids[i] || "" == ids[i]) {
					continue;
				}
				newId +=  ids[i] + "_"
			}
			return newId;
		}
		//规格默认选中
		function initPropCur() {
			var propIds = $("#props").attr("propIds");
			if (null != propIds && "" != propIds) {
				var ids = propIds.split("_");
				for (var i in ids) {
					$("#" + ids[i]).addClass("curr");
				}
			}
			//默认价格和数量
			var selectProps = $(".curr");
			var selectProp = "";
			selectProps.each(function() {				
				var id = $(this).attr("id");
				if (null != id && "" != id) {						
					selectProp = selectProp + id + "_";
				}
			});		
			var pc = window.diMap[propIdReindex(selectProp)];
			if (null != pc) {
				var price = pc.price;
				$("#price").text(price);
				var count = pc.count;
				var cc = $("#count").text();
				if (cc - count > 0) {
					$("#count").text(count);
				}
				
			}
		}
		//初始化规格事件
		function initPropEvent() {
			$(".prop").click(function() {
				if($(this).hasClass("disabled") || $(this).hasClass("curr")) {
					return;
				}
				$(".prop").addClass("disabled")
				$(this).siblings().removeClass("curr");
				$(this).siblings().removeClass("disabled");
				$(this).removeClass("disabled");
				$(this).addClass("curr");
				var index = parseInt($(this).attr("index"));
				var id = $(this).attr("id");
				for (var key in diMap) {
					var count = diMap[key].count;
					var ids = key.split("_");
					var flag = false;
					for (var i in ids) {
						if (ids[i] == id) {
							flag = true;
							break;
						}
					}
					if (flag && count > 0) {		
						for (var i in ids) {	
							$("#" + ids[i]).removeClass("disabled");
						}
					}
				}
				var selectProps = $(".curr");
				var selectProp = "";
				selectProps.each(function() {				
					var id = $(this).attr("id");
					if (null != id && "" != id) {						
						selectProp = selectProp + id + "_";
					}
				});		
				var pc = window.diMap[propIdReindex(selectProp)];
				if (null != pc) {
					var price = pc.price;
					$("#price").text(price);
					var count = pc.count;
					var cc = $("#count").text();
					if (cc - count > 0) {
						$("#count").text(count);
					}
					
				}
			});
		}
		//初始化商品数量
		function initSelectCount() {
			$(".btn_minus").click(function() {
				var count = parseInt($("#count").text());
				count = count - 1;
				if (count == 0) {
					return;
				}
				$("#count").text(count);
			})
			$(".btn_plus").click(function() {
				var count = parseInt($("#count").text());			
				count = count + 1;
				var leave = null;
				if ("all" != window.inventoryType) {					
					var selectProps = $(".curr");
					var selectProp = "";
					selectProps.each(function() {				
						var id = $(this).attr("id");
						if (null != id && "" != id) {						
							selectProp = selectProp + id + "_";
						}
					});		
					var pc = window.diMap[propIdReindex(selectProp)];
					if (null != pc) {
						var price = pc.price;
						$("#price").text(price);
						leave = pc.count;										
					}
				} else {
					leave = window.inventory;
				}
				if (null!= leave && count - leave > 0) {
					$("#count").text(leave);
				}
				$("#count").text(count);
			})
		}
		//初始化属性选择事件
		function initSelectEvent() {
			$("#selectProp").click(function(propClick) {
            	var selectProps = $(".prop.curr");
				var selectProp = "";
				var selectPropName = "";
				selectProps.each(function() {				
					var id = $(this).attr("id");
					var name = $(this).text();
					if (null != id && "" != id) {						
						selectProp = selectProp + id + "_";
						selectPropName = selectPropName + name + " ";
					}
				});		
				var pc = window.diMap[propIdReindex(selectProp)];
				if (null != pc) {
					//$("#props").html(selectPropName  + '<i class="icon ico-10"></i>');
					$("#props").html(selectPropName);
					var price = pc.price;
					var count = pc.count;
					$("#props").attr("price", price);
					$("#props").attr("propIds", selectProp);
					$("#props").attr("propNames", selectPropName);
				} else {
					//$("#props").html('套餐详情 派送时间' + '<i class="icon ico-10"/></i>')
					$("#props").html('套餐详情')
					$("#props").attr("price", "");
					$("#props").attr("propIds", "");
					$("#props").attr("propNames", "");
				}
				hideSelectDialog();
				 $("#isSelected").val(1);
				 
				 var caozuo = $("#selectProp").attr("caozuo");
				 if(!caozuo){
					 $(".btn_buy").click();
				 }else if(2 == caozuo){
					 $(".btn_buy").click();
				 }else if(1 == caozuo){
					 $(".btn_cart").click();
				 }else if(0 == caozuo){
				 }
            });
		}
	    //初始化规格属性
		function initSeletProp() {
	    	$(".ico-11").click(function() {
	    		$(".ft-fixed-appdown").remove();
	    	})
            $('.overlayBG').click(function(e) {
            	hideSelectDialog();
                e.preventDefault();
            });
            $('#mkStandard').on('click', '.btn-close', function(e) {
            	hideSelectDialog();
                e.preventDefault();
            });
            $('#pop_mkStandard').click(function(e) {                        
            	getPropParams();            
            });
            initSelectCount();
            initSelectEvent();
		}
	    function propCheck(propIds){
	    	var result = true;
			var isSelected = $("#isSelected").val();
			var caozuo = $("#selectProp").attr("caozuo");
			if ("1" != isSelected && 1 != isSelected) {
				getPropParams();  
				result = false;
			} else {
				if (Object.keys(diMap).length > 0) {					
					if (null == propIds || "" == propIds) {
							if(caozuo != 0){
								Utils.showToast("请先选择规格");
							}
							getPropParams();  
							result = false;
					}				
				}
			}
			return result;
	    }
		function initBuynow() {
			$(".btn_buy").click(function() {
				$("#selectProp").attr("caozuo", 2); //立即购买
				
				var propIds = $("#props").attr("propIds")||"";
				var propNames = $("#props").attr("propNames");
				var count = $("#count").text();
				var checkResult = propCheck(propIds);
				if(!checkResult){
					return;
				}
				location.href = "$!webPath/app/mcjd/buynow.htm?accessToken="+_accessToken +"&goodsId="+goodsId+"&orgId="+_orgId +"&params="+goodsId + "," + propIds + "," + count;
			});
		}
		function initAddCart() {
			$(".btn_cart").click(function() {
				$("#selectProp").attr("caozuo", 1); //加入购物车
				
				var propIds = $("#props").attr("propIds")||"";
				var propNames = $("#props").attr("propNames");
				var count = $("#count").text();
				var checkResult = propCheck(propIds);
				if(!checkResult){
					return;
				}
				
				$.post("$!webPath/app/goods/cart/add.json",{
					accessToken: _accessToken,
					orgId: _orgId,
					goodsId: goodsId,
					count: count,
					propIds: propIds
				},function(result) {
					if ("100" == result.code) {
						var gcCount = result.data.goodscartCount;
						var scCount = result.data.goodscartCount;
						console.log(gcCount + "," + scCount);
					} else {
						Utils.showToast(result.msg);
					}
				},"json");
			});
		}
		function initClipProp(){
			$("#chooseSpecBox").click(function(){
				$("#selectProp").attr("caozuo", 0); //选择规格
				propCheck();
			});
		}
		function initBtnCartClick(){
			$(".it_btn.it_cart_btn").click(function(){
				location.href="$!webPath/app/mcjd/gdCart.htm?accessToken="+_accessToken+"&orgId="+_orgId
			});
		}
		$(function(){	
			getPropParams(false);  
			initSeletProp();    
			initBuynow();
			initAddCart();
			initClipProp();
			initBtnCartClick();
		});
		
</script>
</body>
</html>